import {getRoadSelectList, getSlopeSelectList, getDamageSelectList, getSlope} from '@/services/model/road-mgmt'
import {getTechnicalFormSelectListNew} from '@/services/model/form'
import constUrl from '@/services/env'
import Format from '@/utils/format'
import {uploadUrl} from '@/services/model/common'
import Permission from '@/utils/permission'

export default {
  data() {
    return {
      EnumBItemTypeList: [{code: 1, name: ' 指标一'}, {code: 2, name: ' 指标二'}],
      EnumTypeList: [{name: '(A)断面几何特征'}, {name: '(B)坡体结构(土质边坡)'}, {name: '(C)气象与水文地质条件'}, {name: '(D)区域地质条件'}, {name: '(E)自然环境条件'}],
      EnumSlopeTypeList: [{code: 1, name: '土质边坡'}, {code: 2, name: '岩质边坡'}, {code: 3, name: '填方边坡'},
        //   {
        //   code: 4,
        //   name: '土石边坡'
        // }
      ],
      // 土质边坡1
      b11SelectList1: [{code: 13, name: '碎石土'}, {code: 20, name: '砂土'}, {code: 27, name: '粉土'}, {
        code: 34,
        name: '黏性土'
      }],
      b12SelectList1: [{code: 13, name: '密实'}, {code: 20, name: '中密'}, {code: 27, name: '稍密'}, {code: 34, name: '松散'}],
      b13SelectList1: [{code: 13, name: '稍湿'}, {code: 20, name: '湿'}, {code: 33, name: '很湿'}],
      b14SelectList1: [{code: 17, name: '坚硬'}, {code: 33, name: '硬塑'}, {code: 50, name: '可塑'}, {code: 66, name: '软塑'}],
      // 土质边坡2
      b11SelectList2: [{code: 4, name: '碎石土'}, {code: 8, name: '砂土'}, {code: 12, name: '粉土'}, {
        code: 20,
        name: '黏性土'
      }],
      b12SelectList2: [{code: 8, name: '反坡'}, {code: 16, name: '近水平（0～10°）'}, {code: 24, name: '缓坡（10～20°）'}, {
        code: 30,
        name: '陡坡（＞20°）'
      }],
      b13SelectList2: [{code: 8, name: '人工填土'}, {code: 16, name: '残坡积土'}, {code: 24, name: '崩坡积土'}, {
        code: 30,
        name: '滑坡堆积土'
      }],
      b14SelectList2: [{code: 10, name: '无外倾结构面或软弱层'}, {code: 20, name: '有外倾结构面或软弱层'}],

      // 岩质边坡坡体结构指标评分值1
      b21SelectList1: [{code: 4, name: '坚硬岩'}, {code: 8, name: '较坚硬岩'}, {code: 12, name: '较软岩'}, {
        code: 16, name: '软岩'
      }, {code: 20, name: '软岩'}],
      b22SelectList1: [{
        code: 4, name: '结构面1～2 组，平均间距＞1m，呈整体或巨厚层状\n' +
          '结构'
      }, {
        code: 8, name: '结构面1～3 组，平均间距1～0.4m，呈块状或厚层\n' +
          '状结构'
      }, {
        code: 12, name: '结构面≥3 组，平均间距1～0.2m，呈裂隙块状或中\n' +
          '厚层状，镶嵌碎裂、薄层状结构'
      }, {
        code: 16, name: '结构面≥3 组，平均间距0.4～0.2m，呈裂隙块状或\n' +
          '碎裂结构'
      }, {code: 20, name: '结构面发育密集无序，岩体呈散体状结构'}],
      b23SelectList1: [{code: 8, name: '好'}, {code: 12, name: '一般'}, {
        code: 16, name: '差'
      }, {code: 20, name: '很差'}],
      b24SelectList1: [{code: 16, name: '近水平（0～5°）或内倾、外倾角大于坡角'}, {code: 24, name: '＞75°或＜15° 24'}, {
        code: 32, name: '15°～25°'
      }, {code: 40, name: '25°～75°'}],
      // 岩质边坡坡体结构指标评分值2
      b21SelectList2: [{code: 25, name: 'Ⅰ类'}, {code: 50, name: 'Ⅱ类'}, {code: 75, name: 'Ⅲ类'}, {
        code: 100, name: 'Ⅵ类'
      },],


      // 填方边坡坡体结构指标评分值
      b41SelectList1: [{code: 8, name: '巨粒土'}, {code: 12, name: '粗粒土'}, {code: 20, name: '细粒土'}],
      b42SelectList1: [{code: 10, name: '反坡'}, {code: 20, name: '近水平（0～10°）'}, {
        code: 30,
        name: '缓坡（10°≤交界面坡度≤20°）'
      }, {code: 40, name: '陡坡（交界面坡度＞20°）'}],
      b43SelectList1: [{code: 8, name: '硬质岩'}, {code: 12, name: '软质岩'}, {code: 20, name: '土层'}],
      b44SelectList1: [{code: 10, name: '无外倾结构面或软弱层'}, {code: 20, name: '有外倾结构面或软弱层'}],

      // 气象与水文地质条件指标评分值
      c1SelectList: [{code: 8, name: '𝑄年≤1000mm'}, {code: 12, name: '1000mm<𝑄年≤1200mm 12'}, {
        code: 16,
        name: '1200mm<𝑄年≤1400mm'
      }, {code: 20, name: '𝑄年>1400mm'}],
      c2SelectList: [{code: 8, name: '𝑄日≤1000mm'}, {code: 16, name: '100mm<𝑄日≤200mm'}, {
        code: 24,
        name: '200mm<𝑄日≤400mm'
      }, {code: 30, name: '𝑄日>400mm'}],
      c3SelectList: [{code: 8, name: '排泄畅'}, {code: 16, name: '排泄较畅'}, {code: 24, name: '排泄较不畅'}, {
        code: 30,
        name: '排泄不畅'
      }],
      c4SelectList: [{code: 8, name: '坡面无渗水'}, {code: 12, name: '坡面点状渗水'}, {code: 16, name: '坡面线状渗水'}, {
        code: 20,
        name: '坡面面状渗水'
      }],

      // 区域地质条件
      d1SelectList: [{code: 10, name: 'α≤0.05g'}, {code: 20, name: '0.05g<α≤0.15g'}, {
        code: 30,
        name: '0.15g<α≤0.20g'
      },],
      d2SelectList: [{code: 8, name: '基本无断裂作用带'}, {code: 16, name: '弱作用带'}, {code: 24, name: '中等强度作用带'}, {
        code: 30,
        name: '强作用带'
      }],
      d3SelectList: [{code: 10, name: '稳定岩组'}, {code: 20, name: '偶滑岩组'}, {code: 30, name: '较易滑岩组'}, {
        code: 40,
        name: '易滑岩组'
      }],

      // 自然环境条件指标评分值
      e1SelectList: [{ code: 8, name: '反坡' }, { code: 16, name: '近水平(0~10°)' }, { code: 24, name: '缓坡 (10~20°)' }, { code: 30, name: '陡坡 (>20°)' }],
      e2SelectList: [{code: 8, name: '植被茂盛，灌木丛生，乔木发育；或植被覆盖率＞60%'}, {code: 16, name: '植被较发育，灌木丛生，少乔木；或植被覆盖率30%～60%'}, {
        code: 24, name: '植被稀少，以草为主；或植被覆盖\n' +
          '率10%～30%'
      }, {code: 30, name: '基岩裸露；或植被覆盖率＜10%'}],
      e3SelectList: [{code: 10, name: '弱发育或不发育'}, {code: 20, name: '中等发育'}, {code: 40, name: '强发育'}],

      oSelectList: [{code: 76, name: '四级公路及以下'}, {code: 85, name: '三级公路'}, {code: 92, name: '二级公路'}, {
        code: 100,
        name: '高速公路及一级公路'
      }],
      pSelectList: [{code: 76, name: '设施位于下述范围外'}, {
        code: 85,
        name: '在坡顶以外1.5倍坡高、路基下方2.0倍坡高范围及两侧有地表建筑物、地下埋藏物、高压线、水体设施'
      }, {code: 92, name: '在坡顶以外1.0倍坡高、路基下方1.5倍坡高范围及两侧有地表建筑物、地下埋藏物、高压线、水体设施'}, {
        code: 100,
        name: '在坡顶以外0.5倍坡高、路基下方1.0倍坡高范围及两侧有隧道、桥梁、地表建筑物、地下埋藏物、高压线、水体设施'
      }],
      qSelectList: [{code: 76, name: '无或轻微'}, {code: 85, name: '不严重'}, {code: 92, name: '较严重'}, {
        code: 100,
        name: '严重'
      }],

      // 列表勾选的数据
      damageSelectList: [],
      slopeSelectList: [],

      roadSelectList: [],
      slopeInfo: {},
      constUrl,
      tips: {
        name: '',
        img: './image/5-1-1.png',
      },
      // 文件上传流url
      uploadStreamUrl: uploadUrl,
      EnumSysBooleanList: [
        {code: 0, name: '最新一次'},
        {code: 1, name: '历史所有'},

      ],
    }
  },
  filters: {
    // 时间格式化
    formatTimer(timer) {
      if (timer) {
        return Format(new Date(timer), 'yyyy-MM-dd hh:mm:ss')
      }
      return ''
    },
    // 时间格式化
    formatTimer2(timer) {
      if (timer) {
        return Format(new Date(timer), 'yyyy-MM-dd')
      }
      return ''
    },

    maintenanceInspectionTypeColor(val) {
      switch (val) {
        case 2:
          return 'background-color:red'
        case 1:
          return 'background-color:green'

      }
    },
    gradeDangerColor(val) {
      switch (val) {
        case 0:
          return 'background-color:#0DC26B'
        case 1:
          return 'background-color:#0073b7'
        case 2:
          return 'background-color:#f39c12'
        case 3:
          return 'background-color:#ff851b'
        case 4:
          return 'background-color:#e43321'
        default:
          return 'background-color:#d22513'
      }
    },
    gradeDangerColor2(val) {
      switch (val) {
        case 0:
          return 'background-color:#0073b7'
        case 1:
          return 'background-color:#0DC26B'
        case 2:
          return 'background-color:#f39c12'
        case 3:
          return 'background-color:#e43321'
        case 4:
          return 'background-color:#ff851b'
        default:
          return 'background-color:#d22513'
      }
    },
    gradeDangerColorSlope(val) {
      switch (val) {
        case 0:
          return 'background-color:#9e9e9e'
        case 1:
          return 'background-color:#e43321'
        case 2:
          return 'background-color:#FF851B'
        case 3:
          return 'background-color:#0073B7'
        case 4:
          return 'background-color:#0DC26B'
        default:
          return 'background-color:#e43321'
      }
    },
  },
  methods: {
    // 模糊搜索路线
    querySearchAsync(queryString, cb) {
      var restaurants
      if (!queryString) {
        restaurants = [];
      } else {
        restaurants = this.restaurants;

      }
      var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants;
      clearTimeout(this.timeout);
      this.timeout = setTimeout(() => {
        cb(results);
      }, 10 * Math.random());
    },
    createStateFilter(queryString) {
      return (state) => {
        return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
      };
    },
    handleSelect(item) {
      this.form.roadId = item.id
      this.changeRoad()
    },
    handleChange(item) {
      if (item == '') {
        this.form.roadId = ''
      }
    },
    // 判断权限
    hasPermission(permissionStr) {
      return Permission(this.$store.state.userInfo, permissionStr)
    },
    showTips(name) {
      this.tips.img = this.tipImage(name)
    },
    tipImage(name) {
      switch (name) {
        case '(B1)坡体裂缝':
          return './image/5-1-1.png'
        case '(B2)坡体局部坍塌':
          return './image/5-1-2.png'
        case '(B3)坡面鼓胀':
          return './image/5-1-3.png'
        case '(S11)挡土墙裂缝':
          return './image/5-3-1.png'
        case '(S12)挡土墙墙体变形':
          return './image/5-3-2.png'
        case '(S13)挡土墙伸缩缝破损':
          return './image/5-3-3.png'
        case '(S14)基础冲刷':
          return './image/5-3-4.png'
        case '(S21)锚头':
          return './image/5-3-5.png'
        case '(S22)框架梁破坏率':
          return './image/5-3-6.png'
        case '(S23)框架梁整体位移':
          return './image/5-3-7.png'
        case '(S31)抗滑桩桩土分离':
          return './image/5-3-8.png'
        case '(S41)墙体开裂':
          return './image/5-3-9.png'
        case '(S42)鼓胀(浆砌片石挡墙)':
          return './image/5-3-10.png'
        case '(S51)护面破损':
          return './image/5-3-11.png'
        case '(D1)坡面渗水':
          return './image/5-4-1.png'
        case '(D2)截排水沟破损':
          return './image/5-4-2.png'
        case '(D3)泄水孔堵塞':
          return './image/5-4-3.png'
        case '(C1)圬工防护破损':
          return './image/5-5-1.png'
        case '(C2)坡面冲刷':
          return './image/5-5-2.png'
        case '(C3)植被防护破坏':
          return './image/5-5-3.png'
        case '权重':
          return './image/1-1-1.png'
        case '选择截排水设施':
          return './image/technicalPic.png'
      }
    },
    timeFormat(time, type) {
      return Format(new Date(time), type)
    },
    //处理文件下载地址
    filePathHandle(val) {
      if (val) {
        this.fileList = val.map(x => {
          return {
            url: constUrl + x.url,
            name: x.name
          }
        })
        return this.fileList
      } else {
        return []
      }
    },
    //获取组织下的路线列表
    async getRoadListByDept(deptId) {
      const {data} = await getRoadSelectList({deptId: deptId})
      this.roadSelectList = data
      let dataList = []
      this.roadSelectList.map(x => {
        dataList.push({
          id: x.id,
          value: x.name,
          name: x.name
        })
      })
      this.restaurants = dataList
      return data
    },
    //边坡列表
    async getSelectSlopeList(deptTreeId, roadId) {
      const {data} = await getSlopeSelectList({deptTreeId: deptTreeId, roadId: roadId})
      this.slopeSelectList = data
      return data
    },
    //获取数组的对应对象
    getListCode(arr, code) {
      let list
      arr.map((x, index) => {
        if (code == (index + 1)) {
          list = x
        }
      })
      return list
    },
    //边坡详情
    async getSlopeInfo(slopeId, row, isDetail) {
      const {data} = await getSlope({id: slopeId})
      this.slopeInfo = data
      if (!this.row) {
        this.currentRow.slopeNo = data.slopeNo
        this.currentRow.name = data.name
        if (row == 'slppeEngineeringForm') {
          this.form = {
            slopeType: 1,
            aItem: {},
            bItem: {type: 1},
            bbItem: {type: 1},
            cItem: {},
            dItem: {},
            eItem: {},
            fItem: {},
            oItem: {
              select1: ''
            },
            pItem: {
              select1: ''
            },
            qItem: {
              select1: ''
            },
            weightItem: {
              codeA: null, codeB: null, codeC: null, codeD: null, codeE: null, codeF: null
            }
          }
          this.form.slopeType = data.slopeType ? data.slopeType : 1
          this.form.slopeTypeLook = data.slopeType ? true : false
          if (row) {

            this.form.aItem.input1Look = data.height ? true : false
            this.form.aItem.input1 = data.height ? data.height : ''
            if (data.slopeType == 1) {
              this.EnumTypeList = [{name: '(A)断面几何特征'}, {name: '(B)坡体结构(土质边坡)'}, {name: '(C)气象与水文地质条件'}, {name: '(D)区域地质条件'}, {name: '(E)自然环境条件'}],
                this.form.bItem.select1Look = data.slopeItem.tuZhiItem.structureType ? true : false
              if (!data.slopeItem.tuZhiItem.structureType) {
                this.form.bItem.select1 = ''
              } else {
                if (data.slopeItem.tuZhiItem.structureType == 1) {
                  this.form.bItem.select1 = 13
                } else if (data.slopeItem.tuZhiItem.structureType == 2 || data.slopeItem.tuZhiItem.structureType == 3 || data.slopeItem.tuZhiItem.structureType == 4) {
                  this.form.bItem.select1 = 34
                } else if (data.roadGrade == 5) {
                  this.form.bItem.select1 = 27
                }
              }
              this.form.bItem.select2Look = data.slopeItem.tuZhiItem.miShiChengDu ? true : false

              this.form.bItem.select2 = data.slopeItem.tuZhiItem.miShiChengDu ? this.getListCode(this.b12SelectList1, data.slopeItem.tuZhiItem.miShiChengDu).code : ''
              this.form.bItem.select3Look = data.slopeItem.tuZhiItem.hanShuiZhuangTai ? true : false
              this.form.bItem.select3 = data.slopeItem.tuZhiItem.hanShuiZhuangTai ? this.getListCode(this.b13SelectList1, data.slopeItem.tuZhiItem.hanShuiZhuangTai).code : ''
              this.form.bItem.select4Look = data.slopeItem.tuZhiItem.chouDuZhuangTai ? true : false
              this.form.bItem.select4 = data.slopeItem.tuZhiItem.chouDuZhuangTai ? this.getListCode(this.b14SelectList1, data.slopeItem.tuZhiItem.chouDuZhuangTai).code : ''
            } else if (data.slopeType == 2) {
              this.EnumTypeList = [{name: '(A)断面几何特征'}, {name: '(B)坡体结构(岩质边坡)'}, {name: '(C)气象与水文地质条件'}, {name: '(D)区域地质条件'}, {name: '(E)自然环境条件'}],

                this.form.bItem.select1Look = data.slopeItem.yanZhiItem.jianYingChengDu ? true : false
              this.form.bItem.select1 = data.slopeItem.yanZhiItem.jianYingChengDu ? this.getListCode(this.b21SelectList1, data.slopeItem.yanZhiItem.jianYingChengDu).code : ''
              this.form.bItem.select2Look = data.slopeItem.yanZhiItem.jieGouFaYu ? true : false
              this.form.bItem.select2 = data.slopeItem.yanZhiItem.jieGouFaYu ? this.getListCode(this.b22SelectList1, data.slopeItem.yanZhiItem.jieGouFaYu).code : ''
              this.form.bItem.select3Look = data.slopeItem.yanZhiItem.jieHeChengDu ? true : false
              this.form.bItem.select3 = data.slopeItem.yanZhiItem.jieHeChengDu ? this.getListCode(this.b23SelectList1, data.slopeItem.yanZhiItem.jieHeChengDu).code : ''

            } else if (data.slopeType == 3) {
              this.EnumTypeList = [{name: '(A)断面几何特征'}, {name: '(B)坡体结构(填方边坡)'}, {name: '(C)气象与水文地质条件'}, {name: '(D)区域地质条件'}, {name: '(E)自然环境条件'}],
                // this.form.bItem.select1Look=data.slopeItem.tianFangItem.tianFangCaiLiao?true:false
                // this.form.bItem.select1 = data.slopeItem.tianFangItem.tianFangCaiLiao?this.getListCode(this.b41SelectList1, data.slopeItem.tianFangItem.tianFangCaiLiao).code:''
                this.form.bItem.select3Look = data.slopeItem.tianFangItem.jiDiTiaoJian ? true : false
              this.form.bItem.select3 = data.slopeItem.tianFangItem.jiDiTiaoJian ? this.getListCode(this.b43SelectList1, data.slopeItem.tianFangItem.jiDiTiaoJian).code : ''
              this.form.bItem.select4Look = data.slopeItem.tianFangItem.kongZhiCengMian ? true : false
              this.form.bItem.select4 = data.slopeItem.tianFangItem.kongZhiCengMian ? this.getListCode(this.b44SelectList1, data.slopeItem.tianFangItem.kongZhiCengMian).code : ''
            }
            this.form.cItem.input1 = data.yearRain ? data.yearRain : ''
            this.form.cItem.input1Look = data.yearRain ? true : false
            this.form.cItem.input2 = data.dailyRain ? data.dailyRain : ''
            this.form.cItem.input2Look = data.dailyRain ? true : false
            this.form.cItem.select1 = data.waterDrainStatus ? this.getListCode(this.c3SelectList, data.waterDrainStatus).code : ''
            this.form.cItem.select1Look = data.waterDrainStatus ? true : false
            this.form.cItem.select2 = data.groundwaterDrainStatus ? this.getListCode(this.c4SelectList, data.groundwaterDrainStatus).code : ''
            this.form.cItem.select2Look = data.groundwaterDrainStatus ? true : false
            if (!data.kangZhenLevel) {
              this.form.dItem.select1 = ''
            } else {
              if (data.kangZhenLevel == 3) {
                this.form.dItem.select1 = 20
              } else if (data.kangZhenLevel == 1 || data.kangZhenLevel == 2) {
                this.form.bItem.select1 = 10
              } else if (data.roadGrade == 4) {
                this.form.bItem.select1 = 30
              } else if (data.roadGrade == 5) {
                this.form.bItem.select1 = ''
                this.form.dItem.select1Look = false
              }
            }
            this.form.dItem.select1 = data.kangZhenLevel ? this.getListCode(this.d1SelectList, data.kangZhenLevel).code : ''
            this.form.dItem.select1Look = data.kangZhenLevel ? true : false
          }
          this.form.oItem.select1Look = data.roadGrade ? true : false
          if (!data.roadGrade) {
            this.form.oItem.select1 = ''
          } else {
            if (data.roadGrade == 1 || data.roadGrade == 2) {
              this.form.oItem.select1 = 100
            } else if (data.roadGrade == 3) {
              this.form.oItem.select1 = 92
            } else if (data.roadGrade == 4) {
              this.form.oItem.select1 = 85
            } else if (data.roadGrade == 5 || data.roadGrade == 6) {
              this.form.oItem.select1 = 76
            }
          }
        } else if (row == 'technicalCheck') {
          if (!isDetail) {
            this.form = {
              itemList: [1],
              bItem: {
                b1Item: {
                  select1: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                b2Item: {
                  select1: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                }
              },
              sItem: {
                mostImportant: 0,//最重要
                important: 0,//次重要
                lastImportant: 0,//一般重要
                s1Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                s2Item: {
                  num: '',
                  select1: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                s3Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
              },
              dItem: {
                dangQiang: 0,
                dList: [],
                d1Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                d2Item: {
                  num: '',
                  select1: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                s3Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
              },
              cItem: {
                slopeTechniqueType: '',
                cList: [],
                c1Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                c2Item: {
                  num: '',
                  select1: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
                c3Item: {
                  num: '',
                  select1: '',
                  select2: '',
                  select3: '',
                  select4: '',
                  value: '',
                  input1: '',
                  input2: '',
                  input3: '',
                  input4: '',
                  childList: []
                },
              },
            }

          }
        }
      }
this.changeRadio1()
      return data
    },
    //技术评定选择下拉列表
    async getTechnicalFormSelectNew(id, row) {
      const {data} = await getTechnicalFormSelectListNew({slopeId: id})
      this.technicalFormList = data ? data : []
      if (this.technicalFormList.length == 0) {
        this.form.fItem.techniqueType = 0
      }
      this.$forceUpdate()
    },
    //地灾点列表
    async getDamageSelectList(deptTreeId, roadId, damageType) {
      const {data} = await getDamageSelectList({deptTreeId: deptTreeId, roadId: roadId, damageType: damageType})
      this.damageSelectList = data
      return data
    },
  },
}
